Singapore Dedicated Server Bandwidth (Uplink) | Network latency | Environment monitoring
Xssist™ Group Pte Ltd Singapore Dedicated Servers Client Testimonials Blog Community Frequently Asked Questions Contact Page
Services
Singapore Dedicated Servers
Control Panel System
Control Panel System
Xssist Blog

[Sysadmin] opensuse, fix waiting for mandatory device, eth0, eth1, eth2, eth3

You have faulty hardware in a PC or server, and moved the harddisks to another chassis. The OS boots up, however, when initializing the network, opensuse cannot find the original network card, and comes up with the error "...waiting for mandatory device...".

It also discovers additional network devices, eg. eth2, eth3, while not finding the original ones, eg. eth0 and eth1. This is because the MAC addresses are different.

To fix this, cd to the /etc/udev/rules.d directory

grep for the network interface that is missing, eg. grep eth0 *

You may find 70-persistent-net.rules has matching entries

The file will contain entries similar to following,

# PCI device 0x14e4:0x1640 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:30:40:75:dc:82", ATTR{type=="1",KERNEL=="eth*",
NAME="eth1"

# PCI device 0x14e4:0x1640 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:30:40:75:dc:83", ATTR{type=="1",KERNEL=="eth*",
NAME="eth0"

# PCI device 0x14e4:0x1640 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:30:40:75:dc:08", ATTR{type=="1",KERNEL=="eth*",
NAME="eth2"

# PCI device 0x14e4:0x1640 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:30:40:75:dc:09", ATTR{type=="1",KERNEL=="eth*",
NAME="eth3"

In the above example, eth2 and eth3 are new, i.e. they contain the MAC addresses of the NIC in the replacement hardware. The entries for eth0 and eth1 are the MAC of the NIC in the faulty hardware. To fix, remove the entries for eth0 and eth1, and change eth2 to eth0 and eth3 to eth1 respectively. Before editing, you may want to make a copy of the file in case of mistakes. Remember to keep each entry as an entire line without linefeeds breaking them up, as may happen for editors like nano.

15 Jun 2010

[Sysadmin] Access to servers via mobile device and ssh
[Sysadmin] RAID 0 scaling on SCSI U320, Bonnie++ 1.93c benchmark results
[Sysadmin] TODO (Apr 2007)
[Sysadmin] Recover from mistakes in /etc/fstab or e2label usage
[Sysadmin] Server overloaded?
[Sysadmin] Server load high: CPU bound
[Sysadmin] Smokeping: deluxe latency measurement tool
[Sysadmin] Smokeping
[Sysadmin] Jul 08 to Oct 08 updates
[Sysadmin] Weak link - downtimes caused by the organic being
[Sysadmin] BIOS upgrades - uniflash - hotflash
[Sysadmin] Sizing for Virtual Private Server (VPS) & SSDs
[Sysadmin] iphone, ipod - bluetooth keyboard - Nokia e51
[Sysadmin] e2label, fdisk, /etc/fstab, mount, linux rescue, rescue disk, CentOS
[Sysadmin] opensuse, fix waiting for mandatory device, eth0, eth1, eth2, eth3
[Sysadmin] mount: could not find filesystem '/dev/root'
[Sysadmin] Parallels Virtuozzo Physical server to Container migration (vzp2v)
[Web hosting] DDOS (Distributed Denial of Service)
[Web hosting] Uptime for dedicated server, VPS and shared server
[Web hosting] Shared, Guaranteed and Dedicated Bandwidth
[Web hosting] Unmetered bandwidth
[Web hosting] Free domains?
[Web hosting] Joomla Scalability
[SPAM handling] Tracking applications which are exploited for mass spam mailing
[Buzzwords] Clusters, Clustering
[Security] Destruction of faulty hard disks
[Storage] Benchmark using iometer on linux
[SSD] Benchmark Intel X25-E and Intel X25-M flash SSDs
[SSD] Intel X25-E 64GB G1, 4KB Random IOPS, iometer benchmark
[SSD] Intel X25-M 160GB G2, 4KB Random IOPS, iometer benchmark
[SSD] Comparison of Intel X25-E G1 vs Intel X25-M G2
[cPanel] ClamAV version has reached End of Life! Please upgrade to version 0.95
[cPanel] How to install Java, ImageMagick and ffmpeg
[Perl] Opening text files for reading, and simple regexp (regular expressions)